import Ajax from "./ajax";

const RoleApi = {};

RoleApi.rolelist = (params) => {
    let url = "/role/list"
    return Ajax.json(url, params)
}

RoleApi.addRole = (params) => {
    let url = "/role/add"
    return Ajax.json(url, params)
}

RoleApi.delRole = (params) => {
    let url = "/role/del"
    return Ajax.json(url, params)
}

RoleApi.rolePermiss = (params) => {
    let url = "/role/permiss"
    return Ajax.json(url, params)
}

RoleApi.authz = (params) => {
    let url = "/role/authz"
    return Ajax.json(url, params)
}

export default RoleApi
